<!--顶部导航栏 -->
<nav class="navbar navbar-expand-md fixed-top navbar-light bg-light" id="topNav">
  <a class="navbar-brand fas" href="/index">
    <img src="https://xib-static.oss-cn-beijing.aliyuncs.com/icon/android-icon-48x48.png" alt="" width="42" height="42">
    仙交闲置公告板</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarBody"
    aria-controls="navbarBody" aria-expanded="true" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarBody">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item pt-2 pb-2 text-center">
        <a href="/index" class="nav-link fas" id="topNav_index">主页</a>
      </li>
      <li class="nav-item pt-2 pb-2 text-center">
        <a href="/submitItem" class="nav-link fas" id="topNav_submit">发布闲置</a>
      </li>
      <li class="nav-item pt-2 pb-2 text-center">
        <a href="/article/1" class="nav-link fas" id="topNav_about">关于</a>
      </li>
    </ul>
    <div class="form-inline my-lg-0 pt-2 pb-2">
      <input type="hidden" style="display: none" />
      <input style="display: none;" id="topSearch" type="text" class="form-control mx-4 text-center" placeholder="搜索" />
    </div>
    <ul class="navbar-nav">
      <li class="nav-item pt-2 pb-2 text-center">
        <a id="topNav_user" href="/login" class="nav-link fas" data-toggle="tooltip" data-placement="bottom" 
          title="访问用户页">登录/注册</a>
      </li>
      <li class="nav-item pt-2 pb-2 text-center">
        <a id="topNav_logout" href="javascript:window.localStorage.removeItem('xjtu-idle-token'); location.reload()"
          class="nav-link fas" style="display: none">登出</a>
      </li>
    </ul>
  </div>
</nav>
<!-- 导航栏结束 -->